package cn.analysis.project.controller;

import cn.analysis.common.ResultVO;
import com.google.gson.Gson;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/** 请求地图矢量数据 */
@RestController
@RequestMapping("/map")
public class MapController {

    @RequestMapping(value = "/getMapByCiviCode", method = RequestMethod.GET)
    public ResultVO getMap(String civiCode){
        Map map = new HashMap();
        map.put("path", "/map/"+ civiCode +".geoJson");
        return ResultVO.success(map);
    }
}
